import Vue from 'vue'
import Router from 'vue-router'
import Home from './views/Home.vue'
import About from './views/About.vue'
import Shopping from './views/Shopping.vue'
import My from './views/My.vue'
import Youpinhui from './components/Youpinhui.vue'
import Miaosha from './components/Miaosha.vue'
import Fenlei from './components/Fenlei.vue'
import Shanpin from './components/Shanpin.vue'


Vue.use(Router)

export default new Router({
  base: process.env.BASE_URL,
  routes: [
    {
      path: '/',
      name: 'home',
      component: Home
    },
    {
      path: '/about',
      name: 'about',
      component: About
    },
    {
    	path: '/Shopping',
    	name: 'Shopping',
    	component: Shopping
    },
    {
    	path: '/My',
    	name: 'My',
    	component: My
    },
    {
    	path: '/youpinhui',
    	name: 'youpinhui',
    	component: Youpinhui
    },
    {
    	path: '/miaosha',
    	name: 'miaosha',
    	component: Miaosha
    },
    {
    	path: '/fenlei',
    	name: 'fenlei',
    	component: Fenlei
    },
    {
    	path: '/shanpin',
    	name: 'shanpin',
    	component: Shanpin
    }
  ]
})
